package org.sxp.modules.dataworks.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import org.sxp.common.utils.XPBeanUtils;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.sxp.common.dto.BaseDO;
import lombok.Data;
import java.io.Serializable;

/**
 * 作业流程表
 * @author 沈兴平
 * @date 2022/02/19
 */
@Data
@TableName("dataworks_flow_list")
public class FlowDO extends BaseDO implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.ASSIGN_ID)
	private String id;

	/**
	 * 作业名称
	 */
	private String name;

	/**
	 * 资源分组
	 */
	private String spaceId;

	/**
	 * 流程脚本
	 */
	private String flowScript;

	/**
	 * 调度任务ID
	 */
	private Integer jobinfoId;
	@TableField(exist = false)
	private String jobinfoName;


    public static FlowDO copyBean(Object source) throws Exception{
        return XPBeanUtils.copyBean(source, FlowDO.class);
    }
}
